SELECT col6 , LAG(col6,1) OVER ( PARTITION BY col2 ORDER BY col0 ) LAG_col6 FROM "fewRowsAllData.parquet"